package com.aaa.marketing.dao;/**
 * Date:2023/3/2
 * Author：臣哥哥
 * Description:
 */

import com.aaa.entity.Advertise;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author     ：Xiaochen 
 * @date       ：Created in 2023/3/2 10:19 
 * @description：
 * @modified By： 
 * @version:
 */
public interface AdvertiseDao extends BaseMapper<Advertise> {
    List<Advertise> selectAll(Advertise advertise);

    Integer updateStatus(@Param("id") Integer id,@Param("templateStatus") Integer status);

    Integer selectCount1(Integer positionId);

    Integer selectMaxCount(Integer positionId);
}
